const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name: {
        type: String
    },
    dean: {
        type: String
    },
    nid: {
        type: String
    },
    superior: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'College'
    }
})

module.exports = mongoose.model('Department', schema)